package com.ruoyi.system.service.impl;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BasicEnterpriseWechatConfigMapper;
import com.ruoyi.system.domain.BasicEnterpriseWechatConfig;
import com.ruoyi.system.service.IBasicEnterpriseWechatConfigService;

/**
 * 企业微信配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class BasicEnterpriseWechatConfigServiceImpl implements IBasicEnterpriseWechatConfigService 
{
    @Autowired
    private BasicEnterpriseWechatConfigMapper basicEnterpriseWechatConfigMapper;

    /**
     * 查询企业微信配置
     * 
     * @param enterpriseWechatConfigId 企业微信配置主键
     * @return 企业微信配置
     */
    @Override
    public BasicEnterpriseWechatConfig selectBasicEnterpriseWechatConfigByEnterpriseWechatConfigId(Long enterpriseWechatConfigId)
    {
        return basicEnterpriseWechatConfigMapper.selectBasicEnterpriseWechatConfigByEnterpriseWechatConfigId(enterpriseWechatConfigId);
    }

    /**
     * 查询企业微信配置列表
     * 
     * @param basicEnterpriseWechatConfig 企业微信配置
     * @return 企业微信配置
     */
    @Override
    public List<BasicEnterpriseWechatConfig> selectBasicEnterpriseWechatConfigList(BasicEnterpriseWechatConfig basicEnterpriseWechatConfig)
    {
        return basicEnterpriseWechatConfigMapper.selectBasicEnterpriseWechatConfigList(basicEnterpriseWechatConfig);
    }

    /**
     * 新增企业微信配置
     * 
     * @param basicEnterpriseWechatConfig 企业微信配置
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertBasicEnterpriseWechatConfig(BasicEnterpriseWechatConfig basicEnterpriseWechatConfig)
    {
        return basicEnterpriseWechatConfigMapper.insertBasicEnterpriseWechatConfig(basicEnterpriseWechatConfig);
    }

    /**
     * 修改企业微信配置
     * 
     * @param basicEnterpriseWechatConfig 企业微信配置
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateBasicEnterpriseWechatConfig(BasicEnterpriseWechatConfig basicEnterpriseWechatConfig)
    {
        return basicEnterpriseWechatConfigMapper.updateBasicEnterpriseWechatConfig(basicEnterpriseWechatConfig);
    }

    /**
     * 批量删除企业微信配置
     * 
     * @param enterpriseWechatConfigIds 需要删除的企业微信配置主键
     * @return 结果
     */
    @Override
    public int deleteBasicEnterpriseWechatConfigByEnterpriseWechatConfigIds(Long[] enterpriseWechatConfigIds)
    {
        return basicEnterpriseWechatConfigMapper.deleteBasicEnterpriseWechatConfigByEnterpriseWechatConfigIds(enterpriseWechatConfigIds);
    }

    /**
     * 删除企业微信配置信息
     * 
     * @param enterpriseWechatConfigId 企业微信配置主键
     * @return 结果
     */
    @Override
    public int deleteBasicEnterpriseWechatConfigByEnterpriseWechatConfigId(Long enterpriseWechatConfigId)
    {
        return basicEnterpriseWechatConfigMapper.deleteBasicEnterpriseWechatConfigByEnterpriseWechatConfigId(enterpriseWechatConfigId);
    }
}
